﻿<?php
@session_start();
require_once("../../class/mysql.class.php");
if (!isset($_GET['id_sortie'])) {
	header('location:../../list_sortie.php?action=error');  
}else{
$obj = new Mysql ();
      	

	  $requte1="DELETE FROM `st_sortie` WHERE id_article='".$_GET["id_article"]."'";
      
      echo $requte1;
      $resultat1=mysql_query($requte1);
      //delete all related entry
      $requte2="DELETE FROM `st_attr_sortie` WHERE id_article='".$_GET["id_article"]."'";
      
      echo $requte2;
      $resultat2=mysql_query($requte2);
      


      
      header('location:../../list_sortie.php?action=sortie&page=list_sortie');  
}
	  
?>